package com.show.business.device.bean;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.show.business.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * @Description: Uart设备告警数据传输
 * @Author: ccx
 * @Date:   2022-07-30
 * @Version: V1.0
 */
@Getter
@Setter
@TableName("t_uart_tmp")
@ApiModel(value = "Uart数据传输", description = "部署位置")
public class UartTmp extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**id(Uart数据传输)*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
    /**imei*/
    @ApiModelProperty(value = "imei")
    private String imei;
    /**时间*/
    @ApiModelProperty(value = "时间")
    private String datetime;

    /**时间*/
    @ApiModelProperty(value = "告警时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date alarmTime;

    /**状态
     * If type <=4:(1:来电、0:断电/缺相)
     * If type==5:(1:在线、0:断线)
     * State=0时，检测220V为断电，检测380V为缺相*/
    @ApiModelProperty(value = "状态")
    private String state;
    /**类型*/
    @ApiModelProperty(value = "类型(0:主线；1:1号子线；2:2号子线；3:3号子线；4:4号子线；5:设备通信状态)")
    private String type;
    /**备注*/
    @ApiModelProperty(value = "备注")
    private String bz;

    /**同步标记*/
    @ApiModelProperty(value = "同步标记（0-未同步；1-已同步）")
    private String mark;
}
